package com.vains.constant;

/**
 * 错误码常量类
 *
 * @author vains
 * @date 2021/4/9 11:15
 */
public final class ErrorCodeConstants {

    /**
     * 用户不存在/被禁用
     */
    public static final int USER_NOT_FOUND = 1000;

    /**
     * 用户密码错误
     */
    public static final int USER_PASSWORD_ERROR = 1001;

    /**
     * 参数grant_type错误
     */
    public static final int GRANT_TYPE_ERROR = 1002;

    /**
     * client_id或client_secret 错误
     */
    public static final int CLIENT_INFO_ERROR = 1003;

    /**
     * 授权码模式携带的code错误(Invalid authorization code)
     */
    public static final int INVALID_AUTHORIZATION_CODE = 1004;

    /**
     * 请求时携带的token异常
     */
    public static final int INVALID_REQUEST_TOKEN = 1005;

    /**
     * 授权码模式携带的回调url错误
     */
    public static final int INVALID_REDIRECT_URL = 1006;

    /**
     * 刷新token错误，参数refresh_token错误
     */
    public static final int REFRESH_TOKEN_ERROR = 1007;

    /**
     * 不支持的请求方式
     */
    public static final int REQUEST_NOT_SUPPORT = 1008;

}
